'use strict';
module.exports = app => {
  const { BIGINT, TEXT, DATE, JSON } = app.Sequelize;
  return app.model.define('tort_designs', {
    tort_design_id: {
      type: BIGINT,
      field: 'id',
      primaryKey: true,
      autoIncrement: true,
    },
    regNo: TEXT,
    // source: STRING,
    holder: JSON,
    locarno_cl: JSON,
    ind_prod: JSON,
    designations: JSON,
    image: JSON,
    regDate: DATE,
    // last_sync_time: DATE,
    last_crawler_time: DATE,
  }, {
    underscored: true,
    paranoid: true,
  });
};
